<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCompanyInfosTable extends Migration
{
  /**
   * 本单位信息
   * Run the migrations.
   *
   * @return void
   */
  public function up()
  {
    Schema::create('company_info', function (Blueprint $table) {
      $table->increments('id');
      $table->string('name', 100)->comment('企业名称');
      $table->string('address', 255)->comment('企业地址');
      $table->string('openBank', 255)->comment('开户行');
      $table->string('accountNumber', 50)->comment('账号');
      $table->string('identifyNumber', 50)->comment('纳税人识别号');
      $table->string('contacts', 20)->comment('联系人');
      $table->string('tel', 20)->comment('联系电话');
      $table->string('phone', 20)->comment('服务热线');
      $table->timestamps();
    });
  }

  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
    Schema::dropIfExists('company_info');
  }
}
